package com.evildog.workspace.system.application.vo;

import com.evildog.workspace.system.application.bo.MenuPermissionTreeBO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * menuPermission
 * </p>
 *
 * @author evildog
 * @since 2020-07-27
 */
@Data
@Accessors(chain = true)
@ApiModel(value="MenuPermission 树形结构", description="菜单")
public class MenuPermissionTreeVO implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "名称")
    private String label;

    @ApiModelProperty(value = "前端判断权限code（platform-menu platform-menu-component必须唯一）")
    private String code;

    @ApiModelProperty(value = "是否禁用")
    private Boolean disabled;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "子菜单")
    private List<MenuPermissionTreeBO> children;



}
